projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7782ccd
)
Further checks for kill-buffer-delete-auto-save-files
author
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 25 Aug 2021 09:49:52 +0000
(11:49 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 25 Aug 2021 09:49:52 +0000
(11:49 +0200)
* src/buffer.c (Fkill_buffer): Check that the auto-save file
exists before asking whether to delete it.
src/buffer.c
patch
|
blob
|
history
diff --git
a/src/buffer.c
b/src/buffer.c
index 7ba0c8bc2a6d2bc7ccbc699a503882dcf116eace..5951040ff2c8e58a8fa02a1b1c442a392d1a1294 100644
(file)
--- a/
src/buffer.c
+++ b/
src/buffer.c
@@
-1798,6
+1798,8
@@
cleaning up all windows currently displaying the buffer to be killed. */)
/* Delete the autosave file, if requested. */
if (modified
+ && STRINGP (BVAR (b, auto_save_file_name))
+ && !NILP (Ffile_exists_p (BVAR (b, auto_save_file_name)))
&& kill_buffer_delete_auto_save_files
&& delete_auto_save_files
&& !NILP (Frecent_auto_save_p ()))